package com.simple.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.simple.entity.SysUserLog;

public interface SysUserLogRespository extends JpaRepository<SysUserLog, Integer>,JpaSpecificationExecutor<SysUserLog>{

	
	@Query(value="SELECT * FROM sys_user_log WHERE username=?1",nativeQuery = true)
	public List<SysUserLog> findByUser(String username);
	
	
}


